package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.SetmealDto;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SetmealService {
    boolean hasCateId(Long id);

    void saveSetmealAndSetmealDish(HttpServletRequest request, SetmealDto setmealDto);

    R pageDish(int page, int pageSize, String name);

    R deleteDish(Long[] ids);

    SetmealDto getSetmealById(Long id);

    void updateSetmeal(HttpServletRequest request, SetmealDto setmealDto);

    void updateStatusById(Integer status, Long[] ids);

    List<Setmeal> selectListByCaGorId(Long categoryId, Integer status);
}
